<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template header}
	<div id="app">
		<div id="shadow" style="display: none;"></div> 
		<header class="top">
			<span>下级报表</span>
			<a href="{U('agent/index')}" class="iconfont back"></a> 
		</header> 
		<div class="main">
			<div>
				<div class="textMore dataType">
        			<em class="tag_choice_day">今天</em> 
        			<i class="iconfont"></i>
        		</div> 
        		<div class="_problemBox tag_choice_item" style="display: none;">
        			<div class="blackBg"></div> 
        			<div class="moreLayer">
        				<ul class="tag_choice_item_li">
        					<li ami="0">
        						<a>今天</a> 
        					</li>
        					<p class="hr1px"></p>
        					<li ami="1">
        						<a>昨天</a> 
        					</li>
        					<p class="hr1px"></p>
        					<li ami="2">
        						<a>本月</a> 
        					</li>
        					<p class="hr1px"></p>
        					<li ami="3">
        						<a>上月</a> 
        					</li>
        				</ul> 
        				<ul class="tag_choice_close">
        					<li>
        						<a>取消</a>
        					</li>
        				</ul>
        			</div>
        		</div>
			</div> 
			<table class="col3Table col3TableTitle">
				<tbody>
					<tr style="table-layout:fixed;width:16rem;text-align: center;color:#666;background-color: #FFF;overflow: hidden;">
						<th style="width:5rem;">账号</th> 
						<th style="width:3rem;">类型</th> 
						<th style="width:4rem;">报表人数</th> 
						<th style="width:4rem;">盈利</th>
					</tr>
				</tbody>
			</table> 
			<table class="ajaxContent col3Table col3TableCon" id="id_content_tab">
				{if $data}
					{loop $data as $k => $v}
						<tr>
							<td>{$v['username']}</td>
							<td>{if $v['user_type'] == 1} 代理 {else} 玩家 {/if}</td>
							<td>0</td>
							<td>{$v['prizeAmount'] - $v['betAmount']}</td>
						</tr>
					{/loop}
				{else}
    				<div class="fullPageMsg">
    					<div class="fullPageIcon iconfont"></div>
    					<p>暂无记录</p>
    				</div>
				{/if}
			</table> 
			<div class="_problemBox" style="display: none;"><div class="blackBg"></div> <div class="moreLayer"><ul><li style="display: none;"><a>选择登录帐号</a></li> </ul> <ul><li><a>取消</a></li></ul></div></div>
		</div> 
	</div>
	<script src="static/js/member/member_common_func.js"></script>
	<script type="text/javascript">
    	//用户选择哪天的记录
		$('.tag_choice_day').on('click', '', function (){
			$('.tag_choice_item').show();
		})
		$('.tag_choice_close').on('click', '', function (){
			$('.tag_choice_item').hide();
		})
    	// 查看哪个时间段的投注订单
		var choice_day = 'today';
		var check      = 0; 
		$('.tag_choice_item_li li').on('click','', function (){
			check = $(this).attr('ami');
			if(check == '0'){
				choice_day = 'today';
				$('.tag_choice_day').html('今天');
			}else if (check == '1'){
				choice_day = 'yesterday';
				$('.tag_choice_day').html('昨天');
			}else if (check == '2'){
				choice_day = 'benyue';
				$('.tag_choice_day').html('本月');
			}else if (check == '3'){
				choice_day = 'shangyue';
				$('.tag_choice_day').html('上月');
			}
			$('.tag_choice_item').hide();
		})
		
    </script>
    
    {template footer}
</html>
